<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Runner</title>
    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
</head>
<body style="background: white;">
    <h1>haha electron go brrr</h1>
    <h2>actions</h2>
    <ul>
        <li><a href="#" id="main-process-crash" onclick="RunnerAPI.mainProcessCrash()">Crash in main process</a></li>
        <li><a href="#" id="main-process-uncaught-exception" onclick="RunnerAPI.mainProcessUncaughtException()">Uncaught exception in main process</a></li>
        <li><a href="#" id="main-process-unhandled-promise-rejection" onclick="RunnerAPI.mainProcessUnhandledPromiseRejection()">Unhandled promise rejection in main process</a></li>
        <li><a href="#" id="main-notify" onclick="RunnerAPI.mainProcessNotify()">Handled error in main process</a></li>
        <li><a href="#" id="main-oversized" onclick="RunnerAPI.mainProcessOversized()">Handled error with oversized payload in main process</a></li>
        <li><a href="#" id="child-process-crash" onclick="RunnerAPI.childProcessCrash()">Crash in child process</a></li>
    </ul>
    <ul>
        <li><a href="#" id="renderer-uncaught-exception">Uncaught exception in renderer</a></li>
        <li><a href="#" id="renderer-unhandled-promise-rejection">Unhandled promise rejection in renderer</a></li>
        <li><a href="#" id="renderer-notify">Handled error in renderer</a></li>
        <li><a href="#" id="renderer-notify-on-error">notify with onError in renderer</a></li>
        <li><a href="#" id="renderer-process-crash">Crash in renderer process</a></li>
        <li><a href="#" id="renderer-and-main-process-crashes">Crash in renderer process followed by a main process crash</a></li>
    </ul>
    <ul>
        <li><a href="#" id="custom-breadcrumb">Leave a custom breadcrumb</a>
        <li><a href="#" id="last-run-info-breadcrumb" onclick="RunnerAPI.mainProcessLastRunInfo()">Leave lastRunInfo as breadcrumb</a>
    </ul>
    <ul>
        <li><a href="#" id="main-process-start-session" onclick="RunnerAPI.mainProcessStartSession()">Start session in main process</a></li>
    </ul>
    <ul>
        <li><a href="#" id="main-process-console-log" onclick="RunnerAPI.mainProcessLog('abc', 123)">console.log in main process</a></li>
        <li><a href="#" id="renderer-process-console-log" onclick="console.log('xyz', 456)">console.log in renderer process</a></li>
    </ul>
    <ul>
        <li><a href="#" id="emulate-offline">Emulate being offline</a></li>
        <li><a href="#" id="emulate-online">Emulate being online</a></li>
    </ul>
    <ul>
        <li><a href="#" id="renderer-cancel-breadcrumbs">Add onBreadcrumb to cancel future renderer breadcrumbs</a></li>
    </ul>
    <ul>
        <li><a href="#" id="performance-metrics">Send an error with performance metrics</a></li>
    </ul>
    <ul>
        <li><a href="#" id="mark-launch-complete" onclick="RunnerAPI.markLaunchComplete()">Call Bugsnag.markLaunchCompolete() in the main process</a></li>
    </ul>
    <ul>
        <li><a href="#" id="page-title-update" onclick="document.title = 'A different title'">Update the page title</a></li>
        <li><a href="#" id="page-title-clear" onclick="document.title = ''">Clear the page title</a></li>
        <li><a href="#" id="set-context">Manually call setContext() in renderer</a></li>
    </ul>
    <ul>
        <li><a href="#" id="main-process-clear-feature-flags" onclick="RunnerAPI.mainProcessClearFeatureFlags()">clear feature flags in an on error in main process</a></li>
        <li><a href="#" id="renderer-clear-feature-flags">clear feature flags in an on error in renderer</a></li>

        <li><a href="#" id="main-process-clear-feature-flags-now" onclick="RunnerAPI.mainProcessClearFeatureFlagsNow()">immediately clear feature flags in main process</a></li>
        <li><a href="#" id="renderer-clear-feature-flags-now">immediately clear feature flags in renderer</a></li>
    </ul>
    <ul>
        <li><a href="#" id="renderer-clear-user">Clear user data in renderer</a></li>
        <li><a href="#" id="renderer-clear-context">Clear context in renderer</a></li>
        <li><a href="#" id="renderer-clear-metadata">Clear "renderer" metadata section</a></li>
    </ul>
</body>
</html>
